/*
 * @Description: Description
 * @Author: wning
 * @Date: 2022-12-07 17:44:28
 * @LastEditors: Andy
 * @LastEditTime: 2023-01-09 18:29:45
 */
import { Http } from '@/common/api'
// 列表
export const listUrl = '/upms/rank/page'
export const apiPostRankPageApi = async (data) => Http.post('/upms/rank/page', data)
// 新增
export const apiPostRankAdd = async (data) => Http.post('/upms/rank/add', data)
export const apiPutRankUpdate = async (parmas) => Http.put('/upms/rank/update', parmas)
export const apiDeleteRankBathDelete = async (id) => Http.delete(`/upms/rank/batch/delete/${id}`)
export const apiGetRankFindById = async (id) => Http.get(`/upms/rank/findById/${id}`)

// 上级模块树
export const apiPostRrgPageApi = async () => Http.post('/upms/org/page')

// 职级树
export const apiPostRankTree = async () => Http.post('/upms/rank/tree')

export const apiPutEnableRank = async (id) => Http.put(`/upms/rank/enable/${id}`)

export const apiPutDisableRank = async (id) => Http.put(`/upms/rank/disable/${id}`)

export const rankExportUrl = '/upms/rank/exportExcel'
